﻿<%@ Page Title="" ClientIDMode="Static" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DeleteUser.aspx.cs" Inherits="XMLSQL.Admin.DeleteUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            //confirmation before delete
            $('#deleteButton').click(function (e) {
                if (!confirm("Are you sure you want to delete this user?")) {
                    e.preventDefault();
                }
            });

            $(function () {
                //jquery validation
                $("#Form1").validate();
            });
        });
    </script>

    <style type="text/css">
        .error {
            color: red;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Delete User</h2>
    <p>
        Please select a user to delete. <b>NOTE:&nbsp;</b>This <b>cannot</b> be undone.
    </p>
    <asp:ListBox ID="deleteListBox" CssClass="required listBox" runat="server" />
    <br />
    <br />
    <asp:Button ID="deleteButton" runat="server" Text="Delete User" 
        onclick="deleteButton_Click" />
</asp:Content>
